package com.lagou.config;

import org.junit.Test;
import sun.applet.Main;

import java.io.File;

public class MyService {


    public void deleteFiles(String path){
        File file=new File(path);
        if(file.isDirectory()){
            File[] files=file.listFiles();
            for(int i=0;i<files.length;i++){
                deleteFiles(files[i].getPath());
            }
        }
        else{
            file.delete();
        }
    }

    @Test
    public void isHer(String userName){
        if("you".equals(userName)){
            System.out.println("I LOVE YOU");
        }else{
            System.out.println("GET OUT");
        }
    }
}
